package dj.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TalkContext entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "talk_context", catalog = "")
public class TalkContext implements java.io.Serializable {

	// Fields

	private String id;
	private String isRead;
	private String msg;
	private Date sendTime;
	private String sendUserid;
	private String receiveUserid;

	// Constructors

	/** default constructor */
	public TalkContext() {
	}

	/** minimal constructor */
	public TalkContext(String id, String sendUserid, String receiveUserid) {
		this.id = id;
		this.sendUserid = sendUserid;
		this.receiveUserid = receiveUserid;
	}

	/** full constructor */
	public TalkContext(String id, String isRead, String msg, Date sendTime, String sendUserid, String receiveUserid) {
		this.id = id;
		this.isRead = isRead;
		this.msg = msg;
		this.sendTime = sendTime;
		this.sendUserid = sendUserid;
		this.receiveUserid = receiveUserid;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "isRead", length = 5)
	public String getIsRead() {
		return this.isRead;
	}

	public void setIsRead(String isRead) {
		this.isRead = isRead;
	}

	@Column(name = "msg")
	public String getMsg() {
		return this.msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "sendTime", length = 10)
	public Date getSendTime() {
		return this.sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	@Column(name = "sendUserid", nullable = false, length = 36)
	public String getSendUserid() {
		return this.sendUserid;
	}

	public void setSendUserid(String sendUserid) {
		this.sendUserid = sendUserid;
	}

	@Column(name = "receiveUserid", nullable = false, length = 36)
	public String getReceiveUserid() {
		return this.receiveUserid;
	}

	public void setReceiveUserid(String receiveUserid) {
		this.receiveUserid = receiveUserid;
	}

}